package com.example.smartgreenhouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("soil_moisture")
public class SoilMoisture {
    @TableId(type = IdType.AUTO)  // 设置自增策略// 指定自增策略
    private Long id;
    private  Long sensor_id = 1L;
    private Long greenhouse_id = 1L;
    private int moisture;
    private int moisture_change_value;
    private float moisture_change_rate;
    private LocalDateTime collect_time;
   private LocalDateTime create_time;
}
